package org.gruposp2p.aula.gwt.client.model;

import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.LoadListener;
import com.google.gwt.user.client.ui.Widget;

public class Photograph extends Image implements LoadListener {
	
	  public Photograph(User user) {
	    /*
		  //set the photo url
	    setUrl("fotos/" + Long.toString(contact.getContactId()) + ".jpg");
	    //set the photo size
	    setWidth("110");
	    setHeight("110");
	    //set css style
	    setStyleName("photograph");
	    //set this instance as the load listener
	    addLoadListener(this);*/
	  }
	  public void onError(Widget sender) {
	    setUrl("fotos/default_photo.jpg");
	  }
	  public void onLoad(Widget sender) {}
	}

